$line-color: #4A90E2;

@mixin vertical-line($width) {
  content: '';
  position: absolute;
  width: $width;
  height: 2px;
  background: $line-color;
}

@mixin horizontal-line {
  content: '';
  position: absolute;
  left: 39px;
  width: 2px;
  height: 100%;
  background: $line-color;
}

.line-arrow {
  position: absolute;
  .arrow{
    position: absolute;
    right: 0;
    i {
      color: $line-color;
      font-size: 16px;
      position: relative;
      top: -2.5px;
      right: -3px;
    }
    &:before {
      @include vertical-line(39px);
      right: 0;
      top: 7px;
    }
  }
  &.straight {
    &:before {
      @include vertical-line(100%);
      right: 0;
      top: -1px;
    }
    .arrow {
      top: -8px;
    }
  }

  &.top {
    &:before {
      @include vertical-line(calc(100% - 39px));
      left: 0;
      bottom: -1px;
    }
    &:after {
      @include horizontal-line;
      bottom: 1px;
    }
    .arrow {
      top: -8px;
    }
  }

  &.bottom {
    &:before {
      @include vertical-line(calc(100% - 39px));
      left: 0;
      top: -1px;
    }
    &:after {
      @include horizontal-line;
      top: 1px;
    }
    .arrow {
      bottom: -13px;
    }
  }
}
